<?php
namespace app\admin\validate;

use think\Validate;
// session_start();
class Admin3 extends Validate
{
    protected $rule = [
        //表单名,表单里面的字段名
        'used_password'  =>  'require',
        'password'  =>'require|confirm:repassword|min:6',
    ];
    protected $message  =   [
        'used_password.require'  => '原密码必须填写', 
        'password.require' => '新密码必须填写',
        'password.confirm'=>'输入两次密码必须一致',
        'password.min'=>'新密码至少六位数',
    ];

}